annex.addunlocked support for tree imports
authorJoey Hess <joeyh@joeyh.name>
Thu, 19 Dec 2024 15:43:22 +0000 (11:43 -0400)
committerJoey Hess <joeyh@joeyh.name>
Thu, 19 Dec 2024 15:43:51 +0000 (11:43 -0400)
commit29b3c7c660a44a926e116da94d32b698ba3758fb
tree320ca0dfb3d4c238c8f9a19d3675b33e36f73d73
parent02169a1ce36911b92162f27ec9f3b42bacac399a
annex.addunlocked support for tree imports

Honor annex.addunlocked configuration when importing a tree from a special
remote.

Note, in a --no-content import, the object file will not be populated
(usually) and so expressions that match on mime type will not match. Tested
this and it works ok, the file just ends up locked. Updated docs for the
mime expressions to mention that they can't match when the file is present

Note that in Command.Sync.pullThirdPartyPopulated, recordImportTree is
called without a AddUnlockedMatcher. Since the tree generated here is not
exposed to the user and does not contain usual filenames, there is no need
of the overhead of checking it.
Annex/Import.hs
CHANGELOG
Command/Import.hs
Command/Sync.hs
doc/bugs/addunlocked_true_is_not_in_effect_for_import.mdwn
doc/bugs/addunlocked_true_is_not_in_effect_for_import/comment_1_d8dc7bb0e6d3ae4e77a2d17ef672b3ab._comment [new file with mode: 0644]
doc/bugs/addunlocked_true_is_not_in_effect_for_import/comment_2_40371f91f89cc035c8edc1b719210a5c._comment [new file with mode: 0644]
doc/bugs/addunlocked_true_is_not_in_effect_for_import/comment_3_4640377996674e1330d542354b36ef3c._comment [new file with mode: 0644]
doc/git-annex-matching-expression.mdwn